package com.csun.cmny.provider.model.domain;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Table(name = "cn_dmc_device_user_bind")
public class DmcDeviceUserBind {
    /**
     * 用户ID
     */
    @Column(name = "user_id")
    private Long userId;

    /**
     * 设备ID
     */
    @Id
    @Column(name = "device_id")
    private Long deviceId;

    /*
    * 最大心跳阈值
    * */
    @Column(name = "max_heartbeat_threshold")
    private Integer maxHeartbeatThreshold;

    /*
    * 最小心跳阈值
    * */
    @Column(name = "min_heartbeat_threshold")
    private Integer minHeartbeatThreshold;

    /*
    * 最大呼吸阈值
    * */
    @Column(name = "max_breath_threshold")
    private Integer maxBreathThreshold;

    /*
    * 最小呼吸阈值
    * */
    @Column(name = "min_breath_threshold")
    private Integer minBreathThreshold;

    /*
    * 翻身次数阈值
    * */
    @Column(name = "action_times_threshold")
    private Integer actionTimesThreshold;

}